package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperBRoleModeAction implements Serializable {
    /**
     * 用户ID
     */
    private Integer rid;

    /**
     * 操作ID
     */
    private String actionId;

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    public Integer getRid() {
        return rid;
    }

    /**
     * 用户ID
     */
    public void setRid(Integer rid) {
        this.rid = rid;
    }

    /**
     * 操作ID
     */
    public String getActionId() {
        return actionId;
    }

    /**
     * 操作ID
     */
    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rid=").append(rid);
        sb.append(", actionId=").append(actionId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBRoleModeAction other = (SuperBRoleModeAction) that;
        return (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getActionId() == null ? other.getActionId() == null : this.getActionId().equals(other.getActionId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getActionId() == null) ? 0 : getActionId().hashCode());
        return result;
    }
}